package com.alcj.service.impl;

import com.alcj.mapper.ContactUsMapper;
import com.alcj.mapper.FirmCultureMapper;
import com.alcj.model.ContactUs;
import com.alcj.model.FirmCulture;
import com.alcj.service.CompanyAboutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :chenxh
 * @version :v1.0
 * @Package :com.alcj.service.impl
 * @Description :${TODO}(用一句话描述改文件的作用)
 * @date :2017/9/5 11:23
 */
@Service
public class CompanyAboutServiceImpl implements CompanyAboutService {
    @Autowired
    FirmCultureMapper firmCultureMapper;

    @Autowired
    ContactUsMapper contactUsMapper;

    /**
     * @Author: chenxh
     * @Description:获取前台宣传信息
     * @Date: 2017/9/7 16:29
     * @param: record
     */
    @Override
    public List<FirmCulture> getFrontInfo() throws Exception {

        // 返回结果
        return this.firmCultureMapper.selectFrontInfo();
    }

    /**
     * @Author: chenxh
     * @Description:获取后台宣传信息
     * @Date: 2017/9/7 16:29
     * @param: record
     */
    @Override
    public List<FirmCulture> getRearInfo() throws Exception {

        // 返回结果
        return this.firmCultureMapper.selectRearInfo();
    }

    /**
     * @Author: chenxh
     * @Description:获取联系我们信息
     * @Date: 2017/9/7 16:29
     * @param: record
     */
    @Override
    public List<ContactUs> getContactUsInfo() throws Exception {

        // 返回结果
        return this.contactUsMapper.selectContactUsInfo();
    }
}
